<?php echo $header; ?>
<div id="content">
  <div class="breadcrumb">
   <?php echo $this->breadCrumbs();?>
  </div>
  <?php if (isset($error_warning)) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/product.png" alt="" />处理函数</h1>
      <div class="buttons"><a onclick="$('#form').submit();" class="button">保存</a>
      <a href="<?php echo UA('tool/collection/funcs'); ?>" class="button">取消</a></div>
    </div>
    <div class="content">
      <form action="<?php echo UA('tool/collection/funcs'); ?>&action=save" method="post" enctype="multipart/form-data" id="form">
        <table class="form">
          <tr>
            <td><span class="required">*</span> 函数/文件</td>
            <td><input type="text" name="func" value="<?php echo $func; ?>" size="100" />
          </tr>
          <tr>
            <td>PHP代码</td>
            <td><textarea name="content" style="width:98%" rows="15"><?php echo $content;?></textarea></td>
          </tr>
        </table>
      </form>
    </div>
  </div>
</div>
<?php echo $footer; ?>